package james.gan.config.spring.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import james.gan.remoting.api.Remoting;
import james.gan.rpc.protocol.api.Protocol;
import james.gan.rpc.protocol.yet.YetProtocol;
import james.gan.serialization.api.Serialization;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RpcConfig {
	
	String registry();
	
	Class<? extends Serialization> serializationType() default Serialization.class; 

	Class<? extends Remoting> remotingType() default Remoting.class;

	Class<? extends Protocol> Protocol() default YetProtocol.class;
	
}
